﻿using Mes.Domain.BoundedContext.Entities;

namespace Mes.Domain.BoundedContext
{
    /// <summary>
    /// 只有一个ID字段的实体对象
    /// </summary>
    public class IdEntityResult : IdEntityResult<int>
    {
        public IdEntityResult()
        {
        }

        public IdEntityResult(int id)
        {
            this.Id = id;
        }
    }

    public class IdEntityResult<TId> : EntityBase<TId> where TId : struct
    {
        public IdEntityResult()
        {
        }

        public IdEntityResult(TId id)
        {
            this.Id = id;
        }

        public TId Id { get; set; }
    }
}
